<template>
    <div>
        <Row>
            <i-col span="8">
                <b-select v-on:change="change" v-bind:value="action" :options="actions"  />
            </i-col>
        </Row>

        <Row class="mt-2 mb-4" v-show="action === 'doAction'">
            <i-col span="4">
                <label style="line-height:32px;">分数调整值：</label>
            </i-col>
            <i-col span="4">
                <InputNumber style="width:100%;"></InputNumber>
            </i-col>
        </Row>
    </div>
</template>

<style scoped>

</style>

<script>
export default {
    name: 'ScoreAction',
    props: {
        action: {
            type: String,
            required: true,
            default: 'noAction'
        }
    },
    data: () => ({
        tAction: 'noAction',
        tScroreAction: 'add',
        actions: [
            {
                text: '无动作',
                value: 'noAction'
            },
            {
                text: '执行操作',
                value: 'doAction'
            },
            {
                text: '链接子判定',
                value: 'nextNode'
            }
        ],
        scoreActions: [
            {
                label: '加分',
                text: '加分',
                value: 'add'
            },
            {
                label: '减分',
                text: '减分',
                value: 'plus'
            }
        ],
    }),
    methods: {
        change(){
            console.log('change come in!',this.action);

            // trueAction
            // falseAction
            // this.EventOperator.$emit('rpcActionChange',{
            //     target: 'trueAction',
            //     value: 'noAction'
            // })
        }
    }
}
</script>



